package org.lanqiao.cloudserviceb.feign.service;


import org.lanqiao.cloudcommon.common.CommonResult;
import org.lanqiao.cloudserviceb.feign.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="cloud-service-a")
public interface IAFeignService {

    /**
     * 远程接口方法调用
     * @param id
     * @return
     */
    @GetMapping("/users/{id}")
    CommonResult<UserDTO>  findById(@PathVariable("id") String  id );



}
